package com.bungarus.busi;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.logging.LogLevel;
import io.netty.handler.logging.LoggingHandler;

/**
 * Created by tang on 2018/11/11.
 */
public class ServerLoggingHandler extends LoggingHandler {
    public ServerLoggingHandler(LogLevel level) {
        super(level);
    }

    @Override
    public void handlerRemoved(ChannelHandlerContext ctx) throws Exception {
        BusiProcessing.busiTaskPool.shutdown();
        BusiProcessing.authPool.shutdown();

        super.handlerRemoved(ctx);
    }
}
